import {createRouter,createWebHistory} from 'vue-router'

const router=createRouter({
  history:createWebHistory(),
  routes:[
    {
      path:'/',
      redirect:'/Add'
    },
    {
      path:'/Add',
      component:()=>import("../views/add.vue")
    },
    {
      path:'/show',
      component:()=>import("../views/Show.vue")
    },
    {
      path:'/update',
      component:()=>import("../views/Update.vue")
    }
  ]
})

export default router